<?php


namespace App\Remote\Orm;


use App\Enums\Check\CheckEnum;
use GuzzleHttp\Exception\GuzzleException;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;

class OrmGoodsRemote extends BaseOrmRemote
{
    /**
     * 获得门店基本信息
     * @return mixed
     * @throws GuzzleException
     * @throws ContainerExceptionInterface
     * @throws NotFoundExceptionInterface
     */
    public static function equipments(int $sysType = CheckEnum::SYS_TYPE_OPEN_SHOP_EQUIPMENT)
    {
        return self::request(
            "GET",
            'internal/goods/equipments',
            ['sys_type' => $sysType],
            null,
            'query'
        );
    }

    const CLASSIFY_NAME_SOFT_DECORATE = 1; // 软装类

    public static function equipmentsSpuSku(int $sysType, int $shopId)
    {
        return self::request(
            "GET",
            'internal/goods/equipmentsSpuSku',
            [
                'sys_type' => $sysType,
                'shop_id'  => $shopId,
            ],
            null,
            'query'
        );
    }
}
